package com.xxh.dasongapp.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.xxh.dasongapp.common.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="用户",description="用户")
public class User extends BaseEntity<User> implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户名（账号）")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;


    @ApiModelProperty(value = "昵称")
    private String name;

    @ApiModelProperty(value = "微信openid凭证")
    private String openId;

    @ApiModelProperty(value = "状态")
    private Integer status;
}
